package cn.csc.module.shoppingCard.convert.project;

import java.util.*;

import cn.csc.framework.common.pojo.PageResult;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import cn.csc.module.shoppingCard.controller.admin.project.vo.*;
import cn.csc.module.shoppingCard.dal.dataobject.project.CardProjectDO;

/**
 * 购物卡项目 Convert
 *
 * @author liuchuang
 */
@Mapper
public interface CardProjectConvert {

    CardProjectConvert INSTANCE = Mappers.getMapper(CardProjectConvert.class);

    CardProjectDO convert(CardProjectCreateReqVO bean);

    CardProjectDO convert(CardProjectUpdateReqVO bean);

    CardProjectRespVO convert(CardProjectDO bean);

    List<CardProjectRespVO> convertList(List<CardProjectDO> list);

    PageResult<CardProjectRespVO> convertPage(PageResult<CardProjectDO> page);

    List<CardProjectExcelVO> convertList02(List<CardProjectDO> list);

}
